﻿@using ELTE.SEM.Common.Enums
@using ELTE.SEM.Data.Managers

<div id="header-container">
    @{
        UserRoleLevel roleLevel = UserRoleLevel.Unknown;
        if(User.Identity.IsAuthenticated)
        {
            roleLevel = new UserManager().GetUsersRole(User.Identity.Name);
        }
        }
    <ul>
        @if(roleLevel == UserRoleLevel.Admin || roleLevel == UserRoleLevel.FullAdmin || roleLevel == UserRoleLevel.Operator)
        {
            <li>
                @Html.ActionLink("Mérési napló","Index","SEMLog")
            </li>
            <li id="menu-item-user-management">
                @Html.ActionLink("Felhasználók kezelése", "UserRoleManagement", "Account")
            </li>
        }
        @if (roleLevel != UserRoleLevel.Unknown)
        {
            <li>@Html.ActionLink("Mérések képei","LogEntryPicturesList","SEMLog")</li> 
        }
        <li>
            @Html.Partial("_LoginStatus")
        </li>
    </ul>
    
</div>
